﻿@model QDT.Common.IPagedList<QDT.Core.Members.UserGroup>

<div class="main_title">
    管理员分组</div>
<div class="blank5">
</div>
<div class="button_row">
    <a class="button" href="@Url.Action("Add")">新增</a>
    <a class="button" href="javascript: foreverdel()">彻底删除</a>
</div>
<div class="blank5">
</div>
<div class="grid_box">
    <div class="grid_top">
    </div>
    @Html.Grid(Model).Columns(column =>
                                  {
                                      column.CheckBox(x => x.ID);
                                      column.For(x => x.ID).Named("编号").HeaderAttributes(style => "width:50px;align:center;");
                                      column.For(x => Html.ActionLink(x.Name, "Edit", new { id = x.ID })).Named("会员组名称").SortColumnName("Name");
                                      column.For(x => x.Score).Named("等级积分");
                                      column.Buttons(btns => btns.Add(x => Html.ActionLink("编辑", "Edit", new { id = x.ID }))
                                                                 .Add(x => Html.ScriptLink("彻底删除", "foreverdel({0})",x.ID))
                                                                 );
                                  }).Complex(ViewData)
    <div class="grid_foot">
    </div>
</div>
<div class="blank5">
</div>
@Html.Pager(Model)